#ifndef H_BUFFSDIALOG
#define H_BUFFSDIALOG
#include "precompiled.h"
#include "character.h"
#include "ui_buffsdialog.h"
namespace weo
{
    namespace ui
    {
        class BuffsDialog : public QDialog, protected Ui_BuffsDialog
        {
            Q_OBJECT
        private:
        public:
            BuffsDialog(QWidget* parent = 0, Qt::WFlags flags = 0);
            void setBuffs(const std::map<std::string, weo::engine::character::Buff>& buffs, bool bok);
            void getBuffs(std::map<std::string, weo::engine::character::Buff>* buffs);
            bool getBok() const
            {
                QList<QListWidgetItem *> items = BuffsListWidget->findItems(tr("Blessing of Kings"),Qt::MatchFixedString);
                if(items.empty()) return false;
                return items[0]->isSelected();
            }
        };
    };
};
#endif